package com.cdm.pojo;

import org.apache.ibatis.type.Alias;

@Alias("/page")
public class Page {

	private Integer pageNow = 1;
	private Integer pageSize = 8;
	private Integer infoSum;
	private Integer pageSum;
	
	public Integer getPageNow() {
		return pageNow;
	}
	public void setPageNow(Integer pageNow) {
		this.pageNow = pageNow;
	}
	
	public Integer getPageSize() {
		return pageSize;
	}
	public void setPageSize(Integer pageSize) {
		this.pageSize = pageSize;
	}
	
	public Integer getInfoSum() {
		return infoSum;
	}
	public void setInfoSum(Integer infoSum) {
		this.infoSum = infoSum;
	}
	
	public Integer getPageSum() {
		return this.infoSum % this.pageSize == 0 ? infoSum/pageSize :infoSum/pageSize + 1 ;
	}
	
	
}
